import cn.net.xyan.blossom.kotlin.json
import com.wondersgroups.yypt.AtmLogControllerImplService
import com.wondersgroups.yypt.CommitAtmScheduleReq
import org.junit.Test
import java.net.URL

class AtmScheduleTest{
    //@Test
    fun test(){
       // val url = URL("http://192.168.203.90:8080/test/cxf/ServiceATM?wsdl")
        val url = URL("http://127.0.0.1:8080/cxf/ServiceATM?wsdl")
        var service = AtmLogControllerImplService(url).atmLogControllerImplPort


        var commitReq = CommitAtmScheduleReq()

        // {"vendor":null,"vendorNo":null,"sign":null,"ex":[],"username":null,"medicalCard":"J07275347","scheduleID":165333,"periodID":255843,"status":1}


        commitReq.medicalCard = "J07275347"
        commitReq.scheduleID = 165333
        commitReq.periodID = 255843
        commitReq.status = 1


        var rsp  = service.commitAtmSchedule(commitReq)

        println(rsp.json)
    }
}